package Fourth;

public class MultiQues extends Question{
	String answer;
	
	public MultiQues(String title, String[] choices,String answer) {
		super(title, choices);
		this.answer=answer;
	}
	
	public boolean check(String answer) {
		if(this.answer.equalsIgnoreCase(answer)) {
			return true;
		}
		else {
			return false;
		}
	}
	public String toString() {
		String result=title+"\n";
		for(String i:choices) {
			result+=i+"\t";
		}
		result+="\n";
		result+="Please choose:";
		return result;
	}
	
	
}
